package com.xuecheng.content.model.dto;

import com.xuecheng.content.model.po.Teachplan;
import com.xuecheng.content.model.po.TeachplanMedia;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * @description 教学计划（课程章节）返回对象
 * @author 勾新杰
 * @version 1.0
 * @date 2024/12/21 13:10
 */

@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@ApiModel(description = "课程计划（课程章节）返回对象")
public class TeachPlanDTO extends Teachplan implements Serializable {

    /**
     * 子结点
     */
    @ApiModelProperty(value = "子结点")
    private List<TeachPlanDTO> teachPlanTreeNodes;

    /**
     * 课程计划媒资信息，只有叶子节点才有值
     */
    @ApiModelProperty(value = "课程计划媒资信息，只有叶子节点才有值")
    private TeachplanMedia teachplanMedia;
}
